|
6dofimu26 2.2.1
|
API for configuring and manipulating 6DOF IMU 26 Click driver. More...
Topics | |
| 6DOF IMU 26 Registers List | |
| List of registers of 6DOF IMU 26 Click driver. | |
| 6DOF IMU 26 Registers Settings | |
| Settings for registers of 6DOF IMU 26 Click driver. | |
| 6DOF IMU 26 MikroBUS Map | |
| MikroBUS pin mapping of 6DOF IMU 26 Click driver. | |
Functions | |
| void | c6dofimu26_cfg_setup (c6dofimu26_cfg_t *cfg) |
| 6DOF IMU 26 configuration object setup function. | |
| err_t | c6dofimu26_init (c6dofimu26_t *ctx, c6dofimu26_cfg_t *cfg) |
| 6DOF IMU 26 initialization function. | |
| err_t | c6dofimu26_default_cfg (c6dofimu26_t *ctx) |
| 6DOF IMU 26 default configuration function. | |
| err_t | c6dofimu26_write_reg (c6dofimu26_t *ctx, uint8_t reg, uint32_t data_in) |
| 6DOF IMU 26 write register function. | |
| err_t | c6dofimu26_read_reg (c6dofimu26_t *ctx, uint8_t reg, uint32_t *data_out) |
| 6DOF IMU 26 read register function. | |
| void | c6dofimu26_set_rst_pin (c6dofimu26_t *ctx, uint8_t state) |
| 6DOF IMU 26 set reset pin function. | |
| uint8_t | c6dofimu26_get_dry_pin (c6dofimu26_t *ctx) |
| 6DOF IMU 26 get data ready pin function. | |
| void | c6dofimu26_reset_device (c6dofimu26_t *ctx) |
| 6DOF IMU 26 reset device function. | |
| err_t | c6dofimu26_check_communication (c6dofimu26_t *ctx) |
| 6DOF IMU 26 check communication function. | |
| err_t | c6dofimu26_get_accel (c6dofimu26_t *ctx, c6dofimu26_axes_t *accel) |
| 6DOF IMU 26 get accelerometer data function. | |
| err_t | c6dofimu26_get_gyro (c6dofimu26_t *ctx, c6dofimu26_axes_t *gyro) |
| 6DOF IMU 26 get gyroscope data function. | |
| err_t | c6dofimu26_get_temp (c6dofimu26_t *ctx, float *temp) |
| 6DOF IMU 26 get temperature function. | |
| err_t | c6dofimu26_get_data (c6dofimu26_t *ctx, c6dofimu26_data_t *data_out) |
| 6DOF IMU 26 get all sensor data function. | |
API for configuring and manipulating 6DOF IMU 26 Click driver.
Any initialization code needed for MCU to function properly. Do not remove this line or clock might not be set correctly.
| void c6dofimu26_cfg_setup | ( | c6dofimu26_cfg_t * | cfg | ) |
6DOF IMU 26 configuration object setup function.
This function initializes Click configuration structure to initial values.
| [out] | cfg | : Click configuration structure. See c6dofimu26_cfg_t object definition for detailed explanation. |
| err_t c6dofimu26_check_communication | ( | c6dofimu26_t * | ctx | ) |
6DOF IMU 26 check communication function.
This function checks the communication by writing and reading the system test register.
| [in] | ctx | : Click context object. See c6dofimu26_t object definition for detailed explanation. |
0 - Success, -1 - Error. | err_t c6dofimu26_default_cfg | ( | c6dofimu26_t * | ctx | ) |
6DOF IMU 26 default configuration function.
This function executes a default configuration of 6DOF IMU 26 Click board.
| [in] | ctx | : Click context object. See c6dofimu26_t object definition for detailed explanation. |
0 - Success, -1 - Error. See #err_t definition for detailed explanation. | err_t c6dofimu26_get_accel | ( | c6dofimu26_t * | ctx, |
| c6dofimu26_axes_t * | accel ) |
6DOF IMU 26 get accelerometer data function.
This function reads the accelerometer X, Y, and Z axis values.
| [in] | ctx | : Click context object. See c6dofimu26_t object definition for detailed explanation. |
| [out] | accel | : Pointer to store accelerometer values in g. |
0 - Success, -1 - Error. | err_t c6dofimu26_get_data | ( | c6dofimu26_t * | ctx, |
| c6dofimu26_data_t * | data_out ) |
6DOF IMU 26 get all sensor data function.
This function reads the accelerometer, gyroscope, and temperature data.
| [in] | ctx | : Click context object. See c6dofimu26_t object definition for detailed explanation. |
| [out] | data_out | : Pointer to store sensor data. |
0 - Success, -1 - Error. | uint8_t c6dofimu26_get_dry_pin | ( | c6dofimu26_t * | ctx | ) |
6DOF IMU 26 get data ready pin function.
This function reads the logic state of the data ready (DRY) pin.
| [in] | ctx | : Click context object. See c6dofimu26_t object definition for detailed explanation. |
| err_t c6dofimu26_get_gyro | ( | c6dofimu26_t * | ctx, |
| c6dofimu26_axes_t * | gyro ) |
6DOF IMU 26 get gyroscope data function.
This function reads the gyroscope X, Y, and Z axis values.
| [in] | ctx | : Click context object. See c6dofimu26_t object definition for detailed explanation. |
| [out] | gyro | : Pointer to store gyroscope values in dps. |
0 - Success, -1 - Error. | err_t c6dofimu26_get_temp | ( | c6dofimu26_t * | ctx, |
| float * | temp ) |
6DOF IMU 26 get temperature function.
This function reads the temperature sensor value.
| [in] | ctx | : Click context object. See c6dofimu26_t object definition for detailed explanation. |
| [out] | temp | : Pointer to store temperature in degrees Celsius. |
0 - Success, -1 - Error. | err_t c6dofimu26_init | ( | c6dofimu26_t * | ctx, |
| c6dofimu26_cfg_t * | cfg ) |
6DOF IMU 26 initialization function.
This function initializes all necessary pins and peripherals used for this Click board.
| [out] | ctx | : Click context object. See c6dofimu26_t object definition for detailed explanation. |
| [in] | cfg | : Click configuration structure. See c6dofimu26_cfg_t object definition for detailed explanation. |
0 - Success, -1 - Error. See #err_t definition for detailed explanation. | err_t c6dofimu26_read_reg | ( | c6dofimu26_t * | ctx, |
| uint8_t | reg, | ||
| uint32_t * | data_out ) |
6DOF IMU 26 read register function.
This function reads data from a specified register of the 6DOF IMU 26 device.
| [in] | ctx | : Click context object. See c6dofimu26_t object definition for detailed explanation. |
| [in] | reg | : Register address. |
| [out] | data_out | : Pointer to store the read data. |
0 - Success, -1 - Error. | void c6dofimu26_reset_device | ( | c6dofimu26_t * | ctx | ) |
6DOF IMU 26 reset device function.
This function resets the device by toggling the reset pin logic state.
| [in] | ctx | : Click context object. See c6dofimu26_t object definition for detailed explanation. |
| void c6dofimu26_set_rst_pin | ( | c6dofimu26_t * | ctx, |
| uint8_t | state ) |
6DOF IMU 26 set reset pin function.
This function sets the reset pin logic state.
| [in] | ctx | : Click context object. See c6dofimu26_t object definition for detailed explanation. |
| [in] | state | : Pin logic state. |
| err_t c6dofimu26_write_reg | ( | c6dofimu26_t * | ctx, |
| uint8_t | reg, | ||
| uint32_t | data_in ) |
6DOF IMU 26 write register function.
This function writes data to a specified register of the 6DOF IMU 26 device.
| [in] | ctx | : Click context object. See c6dofimu26_t object definition for detailed explanation. |
| [in] | reg | : Register address. |
| [in] | data_in | : Data to be written. |
0 - Success, -1 - Error.